package com.ruoyi.business.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.annotation.Translation;
import com.ruoyi.common.constant.TransConstant;
import com.ruoyi.common.convert.ExcelDictConvert;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单改价历史视图对象 order_revaluation_history
 *
 * @author ruoyi
 * @date 2024-04-24
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ExcelIgnoreUnannotated
public class OrderRevaluationHistoryVo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单改价历史表
     */
    @ExcelProperty(value = "订单改价历史表")
    private Long historyId;

    /**
     * 订单id
     */
    @ExcelProperty(value = "订单id")
    private Long orderId;

    /**
     * 改价费用名称
     */
    @ExcelProperty(value = "改价费用名称")
    private String feeName;

    /**
     * 操作人
     */
    @Translation(type = TransConstant.USER_ID_TO_NAME)
    @ExcelProperty(value = "操作人")
    private Long orderOperateUser;

    /**
     * 改价前金额
     */
    @ExcelProperty(value = "改价前金额")
    private BigDecimal beforeAmount;

    /**
     * 改价后金额
     */
    @ExcelProperty(value = "改价后金额")
    private BigDecimal afterAmount;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 其他参数
     */
    @ExcelProperty(value = "其他参数")
    private String elseParams;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @ExcelProperty(value = "删除标志", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=代表存在,1=代表删除")
    private Integer isDeleted;


}
